package com.engine.ld.functions.sap.newKhzsj;

public class ZSD_CUSTOMERDATA_MAINTAINProxy implements ZSD_CUSTOMERDATA_MAINTAIN_PortType {
  private String _endpoint = null;
  private ZSD_CUSTOMERDATA_MAINTAIN_PortType zSD_CUSTOMERDATA_MAINTAIN_PortType = null;

  public ZSD_CUSTOMERDATA_MAINTAINProxy() {
    _initZSD_CUSTOMERDATA_MAINTAINProxy();
  }

  public ZSD_CUSTOMERDATA_MAINTAINProxy(String endpoint) {
    _endpoint = endpoint;
    _initZSD_CUSTOMERDATA_MAINTAINProxy();
  }

  private void _initZSD_CUSTOMERDATA_MAINTAINProxy() {
    try {
      zSD_CUSTOMERDATA_MAINTAIN_PortType = (new ZSD_CUSTOMERDATA_MAINTAIN_ServiceLocator()).getZSD_CUSTOMERDATA_MAINTAIN();
      if (zSD_CUSTOMERDATA_MAINTAIN_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)zSD_CUSTOMERDATA_MAINTAIN_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)zSD_CUSTOMERDATA_MAINTAIN_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }

    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }

  public String getEndpoint() {
    return _endpoint;
  }

  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (zSD_CUSTOMERDATA_MAINTAIN_PortType != null)
      ((javax.xml.rpc.Stub)zSD_CUSTOMERDATA_MAINTAIN_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

  }

  public ZSD_CUSTOMERDATA_MAINTAIN_PortType getZSD_CUSTOMERDATA_MAINTAIN_PortType() {
    if (zSD_CUSTOMERDATA_MAINTAIN_PortType == null)
      _initZSD_CUSTOMERDATA_MAINTAINProxy();
    return zSD_CUSTOMERDATA_MAINTAIN_PortType;
  }

  public String ZSD_CUSTOMERDATA_MAINTAIN(String i_DATA) throws java.rmi.RemoteException{
    if (zSD_CUSTOMERDATA_MAINTAIN_PortType == null)
      _initZSD_CUSTOMERDATA_MAINTAINProxy();
    return zSD_CUSTOMERDATA_MAINTAIN_PortType.ZSD_CUSTOMERDATA_MAINTAIN(i_DATA);
  }


}
